#include<stdio.h>
#include<stdlib.h>

int main(int argc,char *argv[])
{
	FILE *input,*output;
	char ch;
	
	if(argc!=3)
	{
		puts("please input again");
		exit(0);
	}
	if((input = fopen(argv[1],"r")) == NULL)
	{
		puts("fail to open the file");
		exit(0);
	}
	if((output = fopen(argv[2],"w")) == NULL)
	{
		puts("fail to open the file");
		exit(0);
	}
	
	for(;(!feof(input));){
		fputc(ch=fgetc(input),output);
		putchar(ch);
}
	fclose(input);
	fclose(output);
}
